package cn.dengta.webapp.trade.model;

import java.util.Date;

import cn.dengta.webapp.base.entity.BaseEntity;
import cn.dengta.webapp.user.entity.User;
import cn.dengta.webapp.user.entity.task.TaskRule;
import lombok.Getter;
import lombok.Setter;

/**
 * 数据库并无此表，用来兼容
 *
 * @see cn.dengta.webapp.user.service.task.TaskAccountService#change(TaskRule.TaskRuleType, TaskRule, BaseEntity, User, Object, Date)
 * 方法的assocObj参数
 */
@Getter
@Setter
public class IntimacyLevelEntity extends BaseEntity {

	private IntimacyLevel oldLevel;
	private IntimacyLevel newLevel;

	public static IntimacyLevelEntity of(IntimacyLevel oldLevel, IntimacyLevel newLevel) {
		IntimacyLevelEntity entity = new IntimacyLevelEntity();
		entity.oldLevel = oldLevel;
		entity.newLevel = newLevel;
		return entity;
	}

}
